package com.company.app.constants;

import java.io.File;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;

public class Constants {
  /**
   * 放大(其本身也是开关量)
   */
  public static final Double zoom_in_decision = 1.1;

  /**
   * 缩小(其本身也是开关量)
   */
  public static final Double zoom_out_decision = 0.9;

  /**
   * 放大的上限
   */
  public static final double zoom_upper_limit = 1.9;

  /**
   * 缩放的下限
   */
  public static final double zoom_lower_limit = 0.5;

  /**
   * 下1张
   */
  public static final Integer NEXT_PIC = 1;

  /**
   * 上1张
   */
  public static final Integer PREVIOUS_PICTURE = 0;

  /**
   * 开始播放幻灯片
   */
  public static final Boolean start_slide_play = true;

  /**
   * 停止播放幻灯片
   */
  public static final Boolean stop_slide_play = false;

  /**
   * 幻灯片延迟时间
   */
  public static final Integer SLIDE_PLAY_DELAY = 5000;

  /**
   * 第1张
   */
  public static final Integer FIRST_PICTURE = 0;

  /**
   * 末1张
   */
  public static final Integer LAST_PICTURE = 1;

  /**
   * windows
   */
  public static final Integer WIN_SIGN = 0;

  /**
   * linux
   */
  public static final Integer LINUX_SIGN = 1;

  /**
   * 未知的操作系统
   */
  public static final Integer UNKNOWN_SYS_SIGN = -1;

  // user Home
  public static final String USR_HOME_DIR = System.getProperty("user.home");

  // 将要被删除(移动)的文件的集合
  public static List<File> delImgFiles = new ArrayList<>();

  // 已经被删除(移动)的文件的集合
  public static List<File> delDestFiles = new ArrayList<>();

  /**
   * Conflate 合成
   * 
   * @param folderPath
   * @param filePath
   * @return
   */
  public static Path getConflatePath(String folderPath, String filePath) {
    Path conflatePath = Paths.get(folderPath, filePath);
    return conflatePath;
  }
}